- Community Home
- >
- Networking
- >
- Switching and Routing
- >
- Comware Based
- >
- Re: Executing a file (with commands) on comware 7.
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2014 03:37 AM
11-26-2014 03:37 AM
Executing a file (with commands) on comware 7.
hi,
I'm looking for a Comware 7 equivalent to the Comware 5 command "execute".
This command in Comware 5 takes a file (lising in cleartext CLI-commands) as an argument.
I can't seem to find it?
I have a file that lists some commands - how can I upload that file and execute it on a comware 7 switch?
Regards.
Region Midtjylland
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2017 02:19 PM
04-27-2017 02:19 PM
Re: Executing a file (with commands) on comware 7.
Did you ever find a solution to this issue?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-28-2017 03:21 AM
04-28-2017 03:21 AM
Re: Executing a file (with commands) on comware 7.
Hi,
Sort of.
I use python to do the task.
### sdide -2016 import comware try: print "openning file" file = open("commands.txt","r") except IOError as e: print("\nError %d reading file ' %s '\n" % (e.errno, e.filename) ) quit() mycommand = "system-view" for line in file: line = line.rstrip() if len(line) > 1: mycommand = mycommand+" ;"+line comware.CLI(mycommand)
So you have a file with all the commands (eg . command.txt) and you do (priviledged ):
> python abovescript.py commands.txt
So its not really a clean solution. but i works for me.
Regards
Region Midtjylland