Ask is moving to Stack Overflow and Serverfault.com! Please use the "opendaylight" tag on either of these sites. This site is now in Read-Only mode

Revision history [back]

OSGi console cmd via gosh_profile

From the OSGi console, I can issue the dropAllPacketsRpc on command with no trouble. I need to issue that same command in a non-interactive mode, for a CBench performance test I'm writing.

If I put a goshprofile file in controller/opendaylight/distribution/opendaylight/src/main/resources/etc, I can do things like change the OSGi prompt successfully. However, simply putting dropAllPacketsRpc on in that goshprofile (like I would do with other shells) throws an error after build/run (command not found).

My two running theories are that there's another syntax for issuing non-builtin commands, or that the command I'm running hasn't been setup at the time gosh_profile is sourced, so it really doesn't exist.

Obviously I don't know much about Gogo scripts, OSGi and such. I've Googled pretty hard, but I'm having a very tough time finding relevant resources. Links are appreciated, even if you don't have a direct answer.

OSGi console cmd via gosh_profile

From the OSGi console, I can issue the dropAllPacketsRpc on command with no trouble. I need to issue that same command in a non-interactive mode, for a CBench performance test I'm writing.

If I put a goshprofile gosh_profile file in controller/opendaylight/distribution/opendaylight/src/main/resources/etc, I can do things like change the OSGi prompt successfully. However, simply putting dropAllPacketsRpc on in that goshprofile gosh_profile (like I would do with other shells) throws an error after build/run (command not found).

My two running theories are that there's another syntax for issuing non-builtin commands, or that the command I'm running hasn't been setup at the time gosh_profile is sourced, so it really doesn't exist.

Obviously I don't know much about Gogo scripts, OSGi and such. I've Googled pretty hard, but I'm having a very tough time finding relevant resources. Links are appreciated, even if you don't have a direct answer.

OSGi console cmd via gosh_profileIssue non-interactive Gogo shell command

From the OSGi console, I can issue the dropAllPacketsRpc on command with no trouble. I need to issue that same command in a non-interactive mode, for a CBench performance test I'm writing.

If I put a gosh_profile file in controller/opendaylight/distribution/opendaylight/src/main/resources/etc, I can do things like change the OSGi prompt successfully. However, simply putting dropAllPacketsRpc on in that gosh_profile (like I would do with other shells) throws an error after build/run (command not found).

My two running theories are that there's another syntax for issuing non-builtin commands, or that the command I'm running hasn't been setup at the time gosh_profile is sourced, so it really doesn't exist.

Obviously I don't know much about Gogo scripts, OSGi and such. I've Googled pretty hard, but I'm having a very tough time finding relevant resources. Links are appreciated, even if you don't have a direct answer.

Update: I'm able to add any valid OSGi console statement (like dropAllPacketsRpc on) to a script, then successfully run source /path/to/script.sh at the console. However, when I add the source command to gosh_profile, keeping the script syntax the same, I get the same consoleCommandNotFoundException: Command not found: dropAllPacketsRpc. That seems to eliminate my syntax theory and support the theory that the commands built by plugins aren't available at the time gosh_profile is sourced. That seems...hard to get around. *frustration*

Issue non-interactive Gogo shell command

From the OSGi console, I can issue the dropAllPacketsRpc on command with no trouble. I need to issue that same command in a non-interactive mode, for a CBench performance test I'm writing.

If I put a gosh_profile file in controller/opendaylight/distribution/opendaylight/src/main/resources/etc, I can do things like change the OSGi prompt successfully. However, simply putting dropAllPacketsRpc on in that gosh_profile (like I would do with other shells) throws an error after build/run (command not found).

My two running theories are that there's another syntax for issuing non-builtin commands, or that the command I'm running hasn't been setup at the time gosh_profile is sourced, so it really doesn't exist.

Obviously I don't know much about Gogo scripts, OSGi and such. I've Googled pretty hard, but I'm having a very tough time finding relevant resources. Links are appreciated, even if you don't have a direct answer.

Update: I'm able to add any valid OSGi console statement (like dropAllPacketsRpc on) to a script, then successfully run source /path/to/script.sh at the console. However, when I add the source command to gosh_profile, keeping the script syntax the same, I get the same consoleCommandNotFoundException: Command not found: dropAllPacketsRpc. That seems to eliminate my syntax theory and support the theory that the commands built by plugins aren't available at the time gosh_profile gosh_profile is sourced. That seems...hard to get around. *frustration*

Issue non-interactive Gogo shell command

From the OSGi console, I can issue the dropAllPacketsRpc on command with no trouble. I need to issue that same command in a non-interactive mode, for a CBench performance test I'm writing.

If I put a gosh_profile file in controller/opendaylight/distribution/opendaylight/src/main/resources/etc, I can do things like change the OSGi prompt successfully. However, simply putting dropAllPacketsRpc on in that gosh_profile (like I would do with other shells) throws an error after build/run (command not found).

My two running theories are that there's another syntax for issuing non-builtin commands, or that the command I'm running hasn't been setup at the time gosh_profile is sourced, so it really doesn't exist.

Obviously I don't know much about Gogo scripts, OSGi and such. I've Googled pretty hard, but I'm having a very tough time finding relevant resources. Links are appreciated, even if you don't have a direct answer.

Update: I'm able to add any valid OSGi console statement (like dropAllPacketsRpc on) to a script, then successfully run source /path/to/script.sh at the console. However, when I add the source command to gosh_profile, keeping the script syntax the same, I get the same consoleCommandNotFoundException: Command not found: dropAllPacketsRpc. That seems to eliminate my syntax theory and support the theory that the commands built by plugins aren't available at the time gosh_profile is sourced. That seems...hard to get around. *frustration*