Search Mailing List Archives

Limit search to: Subject & Body Subject Author
Sort by: Reverse Sort
Limit to: All This Week Last Week This Month Last Month
Select Date Range     through    

[mininet-discuss] Adding a comamnd int the CLI

Bob Lantz rlantz at
Thu Dec 26 13:41:42 PST 2013

Uh, sudo make install or sudo make develop might help.
But it's also easy to make and use a CLI subclass:

class myCLI( CLI ):
	def do_something( self, line ):
		"do something"
		print "something"

myCLI( net )

On Dec 26, 2013, at 2:25 AM, El Amrani Joutei Ali <elamranijouteiali at> wrote:

> Hello all,
>      I am trying to add a new command in the CLI but it's not working. Here are the steps that i followed:
>       - I added a new command int the file as the folowing:
>  def do_help1( self, line ):
>         "Describe available CLI commands."
>         Cmd.do_help1( self, line )
>         if line is '':
>             output( self.helpStr )
> It's same command as help, but it's not working. and after i tried to use this command in mininet but i have this message: Unknown command: help1
> Should i add something in the code? Thank you for help. 
> -- 
> Best Regards
> Ingénierie Réseaux et télécommunications
> _______________________________________________
> mininet-discuss mailing list
> mininet-discuss at

More information about the mininet-discuss mailing list