2
Module that exposes functions to get information on the current host taken into consideration
6
Get host unique serial identifier
8
@return: the unique serial identifier
15
@return: the host MAC address
22
@return: the IP address
25
def hostResolvedName():
27
Get host Resolved Name
29
@return: the host Resolved Name
32
def hostTrafficBucket():
36
@return: host traffic bucket
39
def numHostSessions():
41
Get actual numHostSessions
43
@return: the number of host Sessions
55
Get current host network_mask
57
@return: the network mask
62
Get hwModel of the current host
64
@return: the hardware model or empy string if no info
67
def isHostResolvedNameType(type):
69
Check if the host matches the specified type
71
@param type: the type of the host resolved name to check
73
@return: true if the host resolved name is of type type, false otherwise
80
@return: true if the current host is ftp, false otherwise
87
@return: true if the current host is a Server, false otherwise
92
Check isWorkstation Host
94
@return: true if the current host is a workstation, false otherwise
97
def isMasterBrowser():
99
Check isMasterBrowser Host
101
@return: true if the current host is a Master Browser, false otherwise
106
Check isMultihomed Host
108
@return: true if the current host is multihomed, false otherwise
113
Check isMultivlaned Host
115
@return: true if the current host is multilaned, false otherwise
122
@return: true if the current host is a printer, false otherwise
127
Check isSMTPhost Host
129
@return: true if the current host is a smtp host, false otherwise
136
@return: true if the current host is a pop host, false otherwise
141
Check isIMAPhost Host
143
@return: true if the current host is an imap host, false otherwise
146
def isDirectoryHost():
148
Check isDirectoryHost Host
150
@return: true if the current host is a directory host, false otherwise
156
Check isHTTPhost Host
158
@return: true if the current host is an http host, false otherwise
163
Check isWINShost Host
165
@return: true if the current host is a wins host, false otherwise
170
Check isBridgeHost Host
172
@return: true if the current host is a bridge, false otherwise
177
Check isVoIPClient Host
179
@return: true if the current host is a voip client host, false otherwise
184
Check isVoIPGateway Host
186
@return: true if the current host is a voip gateway, false otherwise
191
Check isVoIPHost Host
193
@return: true if the current host is a voip host, false otherwise
199
Check isDHCPClient Host
201
@return: true if the current host is a dhcp client, false otherwise
206
Check isDHCPServer Host
208
@return: true if the current host is a dhcp server, false otherwise
215
@return: true if the current host is a p2p host, false otherwise
220
Check isNtpServer Host
222
@return: true if the current host is a ntp server, false otherwise
225
def totContactedSentPeers():
227
Check totContactedSentPeers Host
229
@return: the number of the total contacted sent peers
232
def totContactedRcvdPeers():
234
Check totContactedRcvdPeers Host
236
@return: the number of the total contacted received peers
241
Check fingerprint Host
243
@return: the fingerprint of the current host or empty string if none
248
Check synPktsSent Host
250
@return: the number of syn packets sent by the current host
255
Return the number of packets sent by this host
257
@return: the number packets sent
262
Return the number of packets rcvd by this host
264
@return: the number of packets received
269
Return the number of bytes sent by this host
271
@return: the number of bytes sent
276
Return the number of bytes rcvd by this host
278
@return: the number of bytes received
283
Return the send throughput
285
@param type: actual average peak the type of the sent throughput to get
287
@return: the number of bytes of the sent throughput of type type
290
def receiveThpt(type):
292
Return the receive throughput
294
@param type: actual average peak the type of the received throughput to get
296
@return: the number of bytes of the received throughput of type type
300
Read geoLocalization info from GeoCityLite and return them
302
@return: a dictionary {'country_code':string,'country_name':string, 'region':string, 'city': string, 'latitude': number float, 'longitude': number float }
303
with all the geoLocation info retrieved by GeoCityLite for the current host