SEU Statseeker Export
Installation:
pip install seussexport
Usage:
from seussexport import seussexport
data = {
'server': 'https://statseeker.example.com', # Your Statseeker Server address
'fields': ['name', '.ipaddress', 'SNMPv2-MIB.sysDescr', '.ping_poll', '.snmp_poll'], # list of fields you want returned
'.snmp_poll_filter': 'on', # on = include only devices with SNMP polling on
'.ping_poll_filter': 'on', # on = include only devices with Ping polling on
'groups': [23,26,161562,161563], # List of group IDs to include
'limit': 0, # limit number of results
'device_types': ['Juniper', 'Cisco', 'Brocade', 'Foundry'], # Matches SNMP sysDescr field to filter further
}
result = seu_ss_export(data = data, username = os.environ['SSUSERNAME'], password = os.environ['SSPASSWORD'])
if result:
print(result)
Output:
[{'name': 'ROUTER-1', 'ipaddress': '10.1.1.1', 'vendor': 'Juniper'}, {'name': 'ROUTER-2', 'ipaddress': '10.2.2.2', 'vendor': 'Cisco'}, {'name': 'ROUTER-3', 'ipaddress': '10.3.3.3', 'vendor': 'Brocade'}, {'name': 'ROUTER-4', 'ipaddress': '10.4.4.4', 'vendor': 'Foundry'}]