- CheckMates
- :
- Products
- :
- Developers
- :
- API / CLI Discussion
- :
- Re: Import all objects at the same
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Are you a member of CheckMates?
×- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Import all objects at the same
Hi Any one knows that how to import all objects at the same time to R 80.1 management server ? I am aware about mgmt_cli tool , but still have some confusion on this , any experts can explain on this ?#
- Labels:
-
Object Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Could you please try to elaborate your request?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There are plenty examples of importing objects using mgmt_cli as well as various scripts that can assist you.
If you can elaborate on exactly what you're trying to do, perhaps we can provide a relevant pointer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi all ,
I found that how to import the object via Smart console Mgmt_cli, with .txt file. But have some doubts in while importing the objects via SSH to Management Appliance , once login with user password , I am not able to import bulk object same time every time its asking credentials after importing one object .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
during login command, redirect the login credentials to a file -
login user password > id.txt
and then use -s switch for following command specifying id.txt as a parameter.
robert.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
And one thing I need to know how should I export only objects from R80.1 with their receptive IP address , I exported policy from smart dash broad in .CSV file there I can see objects only no ip addresses , My requirement is I need to export objects with its ip address ,is there any possible ways available to do it ?
Kindly let know about the possibilities
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Robert, have you had any luck using this? Seems like it has something to do with SSL certificates? I'm trying to run it from another server.
When I try to run it I get:
Traceback (most recent call last):
File "./export_hosts.py", line 15, in <module>
get_objects("hosts", fields)
File "/home/user/ExportObjects/get_objects.py", line 136, in get_objects
fields=fields)
File "/home/user/ExportObjects/get_objects.py", line 66, in process_args_and_login
auto_accept=unsafe_auto_accept)) or client.check_fingerprint():
File "/home/user/ExportObjects/cp_mgmt_api_python_sdk/lib/mgmt_api.py", line 535, in check_fingerprint
server_fingerprint = self.get_server_fingerprint()
File "/home/user/ExportObjects/cp_mgmt_api_python_sdk/lib/mgmt_api.py", line 427, in get_server_fingerprint
context = ssl.create_default_context()
AttributeError: 'module' object has no attribute 'create_default_context'
